package com.qf.shop.order.feign.api;

import com.qf.shop.common.vo.AddressVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient(name = "shop-address", path = "/address")
public interface AddressService {

    @GetMapping("/getAddressListByUid/{uid}")
    public List<AddressVo> getAddressListByUid(@PathVariable("uid") Integer uid);

    @RequestMapping("/info/{id}")
    public AddressVo getAddressVoById(@PathVariable("id") Integer id);
}
